<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>业主爱家</title>
<link type="text/css" rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/style.css" media="screen"
	type="text/css" />
<script type="text/javascript">
	
</script>
</head>
<body>
	<div id="content">
		<div id="conTitle">&nbsp;| 待查看的通知</div>
		<div id="noticeList">
			<table>
			        <tr style="color:red;">
						<td style="width: 100px;">→</td>
						<td style="width: 100px;">发布人</td>
						<td style="width: 460px;">发布内容</td>
						<td style="width: 200px;">发布时间</td>
					</tr>
				<c:forEach var="list" items="${list}">
				
					<tr>
						<td style="width: 100px;">→</td>
						<td style="width: 100px;">${list.user.name}</td>
						<td style="width: 460px;">
						<a href="#" style="text-decoration: none; color: black;">${list.comment}</a></td>
						<td style="width: 200px;"><fmt:formatDate value="${list.sendTime}" pattern="yyyy-MM-dd HH:ss:dd" /></td>
					</tr>
				</c:forEach>
			</table>
		</div>
		<c:if test="${user.userRole.id !=1}">
		<div id="conTitle">&nbsp;| 已发送的通知</div>
		<div id="noticeList">
			<table>
			     <tr style="color:red;">
						<td style="width: 100px;">→</td>
						<td style="width: 100px;">通知的小区</td>
						<td style="width: 460px;">通知内容</td>
						<td style="width: 200px;">通知时间</td>
					</tr>
				<c:forEach var="list1" items="${list1}">
					<tr>
						<td style="width: 100px;">→</td>
						<td style="width: 100px;">${list1.district.districtName}</td>
						<td style="width: 460px;">
						<a href="#" style="text-decoration: none; color: black;">${list1.comment}</a></td>
						<td style="width: 200px;"><fmt:formatDate value="${list1.sendTime}" pattern="yyyy-MM-dd HH:ss:dd" /></td>
					</tr>
				</c:forEach>
			</table>
		</div>
		</c:if>
	</div>
</body>
</html>